import java.util.HashMap;
import java.util.Scanner;

public class Java004 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
//        HashMap<String,String> map = new HashMap<>();
//        map.put("a","b");map.put("b","c");map.put("c","d");map.put("d","f");map.put("f","g");
        fun(sc.nextLine());

    }

    public static void fun(String s){
        String str=new String();
        HashMap<String,String> map = new HashMap<>();
        map.put("a","2");map.put("b","2");map.put("c","2");
        map.put("d","3");map.put("e","3");map.put("f","3");
        map.put("g","4");map.put("h","4");map.put("i","4");
        map.put("j","5");map.put("k","5");map.put("l","5");
        map.put("m","6");map.put("n","6");map.put("o","6");
        map.put("p","7");map.put("q","7");map.put("r","7");map.put("s","7");
        map.put("t","8");map.put("u","8");map.put("v","8");
        map.put("w","9");map.put("x","2");map.put("y","9");map.put("z","9");//也可以用if或者ArrayList
        for(int i=0;i<s.length();i++){
            char a = s.charAt(i);
            String b = String.valueOf(a);
            if(a>='A'&&a<='Z'){
                if(a=='Z'){
                    System.out.println("Z加密为{");
                }
                a=(char)(a+33);
                str=str+a;
            }else if(a>='a'&&a<='z'){
                str+=map.get(b);
            }else if(a>='1'&&a<='9'){
                str+=b;
            }else{
                System.out.println("特殊字符按数字加密规则");
            }
        }

        System.out.println("After encryption:"+str);
    }
}
